home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group97a.txt
/
000034_icon-group-sender _Mon Feb 3 16:15:48 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
2KB
Received: by cheltenham.cs.arizona.edu; Mon, 3 Feb 1997 16:38:28 MST
Message-Id: <1.5.4.32.19970203221548.0073d484@post.its.mcw.edu>
X-Sender: cdt@post.its.mcw.edu
X-Mailer: Windows Eudora Light Version 1.5.4 (32)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Mon, 03 Feb 1997 16:15:48 -0600
To: icon-group@cs.arizona.edu
From: Chris Tenaglia <cdt@post.its.mcw.edu>
Subject: table dimensions
Errors-To: icon-group-errors@cs.arizona.edu
Status: RO
Content-Length: 1031
I've made 2-d tables. The index of a table can be
thought of as a database key. n-dimensions can
be supported by cleverly constructing the index.
Let's say I have x, and y to index a table. If x, and
y are integers here are some reference samples.
db := table("n/a")
....lotsa code....
db[x || "," || y] := newstuff
work := db[x || "," || y]
....more code....
x := hashx(dbkey)
y := hashy(dbkey)
update(db[x || "," || y])
Obviously, this is just pseudocode, but I've used
the methodology to write some small databases.
I also used it in graphics to write some 3-d graphics.
Then use array[x || "," || y || "," || z] to reference
the points in 3-d. Thus you can convert one dimension
into N dimensions.
Chris.
Chris Tenaglia (system manager) | cdt@post.its.mcw.edu
Medical College of Wisconsin |
8701 W. Watertown Plank Rd. | Ce que vous voyez est
Milwaukee, WI 53226 (414)456-8765 | Ce que vous obtenez !